/*
 * @Author: YeFei
 * @Date: 2021-11-05 09:17:22
 * @LastEditTime: 2021-11-05 16:45:10
 * @Descripttion:
 */
import http from "@/utils/http"

const prefixUrl = "/user"
export default {
  role: {
    query: "GET:/user",
    create: "POST:/user",
    select: "GET:/user/:id",
    update: "PUT:/user/:id",
  },
  query(params) {
    return http.get(prefixUrl, params)
  },
  create(params) {
    return http.post(prefixUrl, params)
  },
  select(id) {
    return http.get(prefixUrl + "/" + id)
  },
  update(id, params) {
    return http.put(prefixUrl + "/" + id, params)
  },
}
